PDF4Java Reference Documentation
com.o2sol.pdf4java.annotations Package / PDFFileAttachmentAnnotation Class / setIcon Method
The name of the file attachment annotation icon.
In This Topic
    setIcon Method
    In This Topic
    Sets the file attachment annotation icon.
    The icon name defines the annotation's visual appearance. The library supports a predefined set of names (, , , ) for which standard appearance is created. When a custom name is used, a custom appearance must also be provided.
    Syntax
    public void setIcon( 
       java.lang.String icon
    )

    Parameters

    icon
    The name of the file attachment annotation icon.
    Exceptions
    ExceptionDescription
    Thrown when the icon is null or empty.
    See Also